package com.eattravel.service.impl;

import com.eattravel.mapper.CommentComMapper;
import com.eattravel.pojo.CommentCom;
import com.eattravel.service.CommentComService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author glong
 * @date 2019/10/6 21:38
 * 描述：二级评论的相关操作
 */
@Service
public class CommentComServiceImpl implements CommentComService {

    @Autowired
    CommentComMapper commentComMapper;

    @Override
    public int addCommentCom(CommentCom commentCom) {
        if (commentCom != null){
            return commentComMapper.insertCommentCom(commentCom);
        }
        return 0;
    }
}
